package cn.bdqn.wen.service;

import cn.bdqn.wen.dao.DetailMapper;
import cn.bdqn.wen.pojo.Categroy;
import cn.bdqn.wen.pojo.Detail;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;

@Service("detailservice")
public class Detailserviceimpl implements  Detailservice {
    @Resource
    private  DetailMapper dm;
    @Override
    public List<Detail> selectDetail(int categroyId, String title) {
        return dm.selectDetail(categroyId,title);
    }

    @Override
    public List<Categroy> selectCategroy() {
        return dm.selectCategroy();
    }

    @Override
    public int updateDetail(Detail detail) {
        return dm.updateDetail(detail);
    }

    @Override
    public List<Detail> selectId(int id) {
        return dm.selectId(id);
    }
}
